package cn.itcast.test.createThreadMethod;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.test4")
public class test4 {
    public static void main(String[] args){
        new Thread(()->{
           while (true){
                log.debug("{}","running");
           }
        },"test1").start();

        new Thread(()->{
            while (true){
                log.debug("{}","running");
            }
        },"test2").start();
    }
}
